//
//  ZCSearchHeaderView.m
//  zctx
//
//  Created by apple on 16/4/11.
//  Copyright © 2016年 sanliang. All rights reserved.
//

#import "ZCSearchHeaderView.h"

@interface ZCSearchHeaderView()



@end

@implementation ZCSearchHeaderView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithHexString:@"#ebeded"];
        [self addSubview:self.titleLable];
        [self.titleLable mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.centerY);
            make.left.equalTo(self.left).with.offset(18);
            make.height.mas_equalTo(@(25));
            make.width.mas_equalTo(@(150));
        }];
    }
    return self;
}

-(UILabel *)titleLable{
    if (!_titleLable) {
        _titleLable = [[UILabel alloc]init];
        _titleLable.textAlignment = NSTextAlignmentLeft;
        _titleLable.font = [UIFont systemFontOfSize:15];
        _titleLable.textColor = [UIColor colorWithHexString:@"#b2b2b2"];
        _titleLable.text = @"最近搜过";
    }
    return _titleLable;
}

@end
